* {
    padding: 0;
    margin: 0;
}

body {
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: antiquewhite;
}

#app {
    width: 380px;
    height: 700px;
    position: relative;
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 0 0 20px 5px rgba(0, 0, 0, .2);
}

.bg {
    width: 380px;
    height: 700px;
    position: absolute;
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    filter: blur(15px);
    transition: all ease-in .2s;

}

.bgDisplay {
    filter: blur(0px);
}

.music-player {
    position: absolute;
    width: 380px;
    height: 700px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    z-index: 999;
    color: white;
    font-size: 12px;
    background-color: hsla(0, 0%, 0%, .2)
}

.head {
    min-height: 60px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.head .search {
    width: 235px;
    height: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: 15px;
    overflow: hidden;
    background-color: rgba(255, 255, 255, 0.3);
}

.search .search-box {
    margin-left: 10px;
    height: inherit;
    border: none;
    outline: none;
    flex-grow: 1;
    background: transparent;
    color: white;

}

.search-box::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

button {
    background-position: center;
    background-size: cover;
    background-color: transparent;
    border: none;
    outline: none;
    cursor: pointer;
}

.search .search-icon {
    margin-right: 10px;
    height: 20px;
    width: 20px;
    background-image: url(../images/搜索.png);

    opacity: 0.6;
}

.search-icon:hover {
    opacity: 1;
}

#app .list {
    flex-grow: 1;
    list-style: none;
    padding: 0;
    overflow-y: scroll;
    overflow-x: visible;
    position: relative;
}

.active {
    color: rgb(224, 210, 141);
    background-color: rgba(22, 21, 21, 0.1);
}

.list::-webkit-scrollbar {
    display: none;
}



.item {
    height: 50px;
    padding: 10px 13px 10px 13px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-sizing: border-box;
    cursor: default;
}

.item:hover {
    background-color: rgba(22, 21, 21, 0.1);
}

.item .left {
    display: flex;
    align-items: center;
    width: 190px;
    height: 30px;
    line-height: 30px;
}

.item .left .like-icon {
    margin-right: 5px;
}

.item .left .music-name {
    width: 160px;
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow: hidden;
}

.item .right {
    display: flex;
    width: 125px;
    height: 30px;
    align-items: center;
    line-height: 30px;
}

.item .right .music-singer {
    width: 90px;
    height: 30px;
    margin-right: 5px;
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow: hidden;
}

.control-panel {
    min-height: 90px;
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
}

.control-panel button {
    width: 20px;
    height: 20px;
}
.musicProgressControls{
    user-select: none;
    padding: 0 5px 0 5px;
    box-sizing: border-box;
    height: 23px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-evenly;
}
.musicProgressControls .music-time{

    width: 100%;
    display: flex;
    justify-content: space-between;

}
.musicProgressControls .slider{
    min-height: 2px;
    width: 100%;
    background:#eee;
    border-radius:5px;
}
.musicProgressControls .music-progress{
    min-height: 2px;
    width: 0;
    background:rgb(81, 146, 254);
    border-radius:5px;
}
.mid {
    width: 130px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.mid .prev {
    background-image: url(../images/上一.png);
}

.mid .play-or-stop {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: white;
    background-image: url("../images/播放.png");
}

.play {
    background-image: url("../images/暂停 停止.png") !important;
}


.mid .next {
    background-image: url("../images/下一.png");
}

.control-panel .bottom{
    min-height: 60px;
    display: flex;
    justify-content: space-around;
    align-items: center;
}

.control-panel .left,
.control-panel .right {
    width: 80px;
    display: flex;
    justify-content: space-around;
}

.volume {
    position: relative;
    width: 20px;
    height: 20px;

}

.volume:hover .wrap {
    display: block;
}
.volume .wrap{
    width: 50px;
    height: 204px;
    position: absolute;
    left: -14px;
    bottom: 20px;
    display: none;
}

.volume .volume-controls {
    top: 0;
    position: absolute;
    width: 50px;
    height: 190px;
    background-color: #fff;
    border-radius: 5px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

}
.volume-text{
    color: rgb(138, 131, 131);
    user-select: none;
}
.volume .volume-controls::after {
    position: absolute;
    content: '';
    width: 15px;
    height: 15px;
    background-color: #fff;
    clip-path: polygon(0% 0%, 100% 0, 50% 50%);
    left: 17px;
    bottom: -15px
}

.volume-controls .slider {
    position: relative;
    width: 5px;
    height: 130px;
    border-radius: 3px;
    background-color:#eee;
    margin-bottom: 15px;
}

.volume-controls .progress {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 3px;
    background-color: rgb(81, 146, 254);
    bottom: 0;
}

.volume-controls .pin {
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background-color: rgb(81, 146, 254);
    position: absolute;
    left: -5px;
    top:-2px

}

.control-panel .left .player-model {
    background-image: url(../images/顺序播放.png);
}

.control-panel .left .volume-btn {
    background-image: url(../images/音量.png);
}

.control-panel .right .music-album {
    background-image: url(../images/写真.png);
}

.control-panel .right .player-list {
    background-image: url(../images/播放列表.png);
}
#canvas{
    position: fixed;
    left: 0;
    top: 50%;
    height: 50px;
    width: 200px;
}
